﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using Zeus.Thunder.Core;

namespace Perseus.WCF.Client.Basic
{
    public class CalculatorTest : ITestCase
    {
        public void Run()
        {
            PerseusDemoServiceClient client = new PerseusDemoServiceClient();

            Console.WriteLine("x + y = {2} when x = {0} and y = {1}", 19876.32, 2009.13, client.Add(19876.32, 2009.13));
            Console.WriteLine("x - y = {2} when x = {0} and y = {1}", 19876.32, 2009.13, client.Subtract(19876.32, 2009.13));
            Console.WriteLine("x * y = {2} when x = {0} and y = {1}", 99.99, 2.4, client.Multiply(99.99, 2.4));
            Console.WriteLine("x / y = {2} when x = {0} and y = {1}", 98, 32, client.Divide(98, 32));
            
            client.Close();
        }
    }
}
